package com.report;

import com.report.excel.ExcelTemplateEngine;
import com.report.word.WordTemplateEngine;

public class TemplateEngineFactory {
    public static TemplateEngine createTemplateEngine(TemplateType type) {
        switch (type) {
            case EXCEL:
                return new ExcelTemplateEngine();
            case WORD:
                return new WordTemplateEngine();
        }
        return null;
    }
}
